Kanzi 3.9.10
NodeMetadata Interface Reference

Metadata definitions for Node. More...

Inheritance diagram for NodeMetadata:
[legend]

Classes

class  NodeComponentMessageArguments
 Metadata definitions for NodeComponentMessageArguments. More...
 
class  NodeComponentSourceMessageArguments
 Metadata definitions for NodeComponentSourceMessageArguments. More...
 

Public Attributes

DynamicPropertyType< FloatActualDepthProperty
 The calculated size of the node in depth direction when used in a layout.
 
DynamicPropertyType< FloatActualHeightProperty
 The calculated height of the node when used in a layout.
 
DynamicPropertyType< FloatActualWidthProperty
 The calculated width of the node when used in a layout.
 
DynamicPropertyType< BooleanClipChildrenProperty
 Sets whether to clip the child nodes of this node.
 
DynamicPropertyType< NodeEnums.ContentStretchContentStretchProperty
 Sets how the content that belongs to this node is stretched (as opposed to manipulating the actual node size).
 
DynamicPropertyType< BooleanCreatedFromKZBProperty
 Kanzi internally uses this property to distinguish objects like bindings and triggers created in code from objects that are loaded from a kzb file.
 
DynamicPropertyType< NodeEnums.DepthAlignmentDepthAlignmentProperty
 The alignment in depth direction the node should use when it resides under a layout.
 
DynamicPropertyType< Vector2DepthMarginProperty
 Sets the depth distance between this node and other nodes that are adjacent to this node in a layout.
 
DynamicPropertyType< FloatDepthProperty = new DynamicPropertyType<>("Node.Depth", Float.class)
 The size of the node in depth direction when used in a layout.
 
DynamicPropertyType< BooleanEffectivelyEnabledProperty
 Indicates whether this node and its ancestor nodes are enabled.
 
DynamicPropertyType< BooleanEnabledProperty
 Whether this node is enabled.
 
DynamicPropertyType< BooleanFocusableProperty
 Indicates whether the node can receive focus.
 
DynamicPropertyType< BooleanFocusedProperty
 Indicates whether the node has the key focus.
 
DynamicPropertyType< FocusStateFocusStateProperty
 Reports the focus state of a node:
 
DynamicPropertyType< ResourceFontFamilyProperty
 The font family used to render the text.
 
DynamicPropertyType< FloatHeightProperty
 The height of the node when used in a layout.
 
DynamicPropertyType< BooleanHitTestableContainerProperty
 When enabled, Kanzi uses the layout bounds as geometry for hit testing.
 
DynamicPropertyType< BooleanHitTestableProperty
 When enabled, the node can be hit tested.
 
DynamicPropertyType< NodeEnums.HorizontalAlignmentHorizontalAlignmentProperty
 The alignment in horizontal direction the node should use when it resides under a layout.
 
DynamicPropertyType< Vector2HorizontalMarginProperty
 Sets the horizontal space between this node and other nodes that are adjacent to this node in a layout.
 
DynamicPropertyType< BooleanHoverProperty
 Indicates whether a node is the foremost hit testable node under the cursor.
 
DynamicPropertyType< String > LocaleProperty
 The locale of the node.
 
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.Node")
 Metaclass for Node.
 
DynamicPropertyType< String > NameProperty = new DynamicPropertyType<>("Node.Name", String.class)
 Node name.
 
DynamicPropertyType< FloatOpacityProperty
 Opacity of the node.
 
DynamicPropertyType< String > PathProperty = new DynamicPropertyType<>("Node.Path", String.class)
 Full path to the node.
 
DynamicPropertyType< FloatProjection2DTo3DScaleProperty
 Sets the scale factor to project pixels to 3D size.
 
DynamicPropertyType< ResourceStateManagerProperty
 Sets the State Manager to the node.
 
DynamicPropertyType< ResourceStyleProperty
 Sets a style to the node.
 
DynamicPropertyType< NodeEnums.VerticalAlignmentVerticalAlignmentProperty
 The alignment in vertical direction the node should use when it resides under a layout.
 
DynamicPropertyType< Vector2VerticalMarginProperty
 Sets the vertical space between this node and other nodes that are adjacent to this node in a layout.
 
DynamicPropertyType< FloatVisibleAmountInParentProperty
 Sets the amount the node is inside its parent.
 
DynamicPropertyType< BooleanVisibleProperty
 When disabled, Kanzi does not render the node.
 
DynamicPropertyType< FloatWidthProperty = new DynamicPropertyType<>("Node.Width", Float.class)
 The width of the node when used in a layout.
 

Detailed Description

Metadata definitions for Node.

Member Data Documentation

◆ ActualDepthProperty

DynamicPropertyType<Float> ActualDepthProperty
Initial value:
=
new DynamicPropertyType<>("Node.ActualDepth", Float.class)

The calculated size of the node in depth direction when used in a layout.

◆ ActualHeightProperty

DynamicPropertyType<Float> ActualHeightProperty
Initial value:
=
new DynamicPropertyType<>("Node.ActualHeight", Float.class)

The calculated height of the node when used in a layout.

◆ ActualWidthProperty

DynamicPropertyType<Float> ActualWidthProperty
Initial value:
=
new DynamicPropertyType<>("Node.ActualWidth", Float.class)

The calculated width of the node when used in a layout.

◆ ClipChildrenProperty

DynamicPropertyType<Boolean> ClipChildrenProperty
Initial value:
=
new DynamicPropertyType<>("Node.ClipChildren", Boolean.class)

Sets whether to clip the child nodes of this node.

Kanzi clips the child nodes whose bounding box is completely outside of the bounding box of their parent node. Use this property with layout nodes. The child nodes can use only translation transformation.

◆ ContentStretchProperty

Initial value:
=
new DynamicPropertyType<>("Node.ContentStretch", NodeEnums.ContentStretch.class)

Sets how the content that belongs to this node is stretched (as opposed to manipulating the actual node size).

◆ CreatedFromKZBProperty

DynamicPropertyType<Boolean> CreatedFromKZBProperty
Initial value:
=
new DynamicPropertyType<>("CreatedFromKZB", Boolean.class)

Kanzi internally uses this property to distinguish objects like bindings and triggers created in code from objects that are loaded from a kzb file.

◆ DepthAlignmentProperty

Initial value:
=
new DynamicPropertyType<>("Node.DepthAlignment", NodeEnums.DepthAlignment.class)

The alignment in depth direction the node should use when it resides under a layout.

◆ DepthMarginProperty

DynamicPropertyType<Vector2> DepthMarginProperty
Initial value:
=
new DynamicPropertyType<>("Node.DepthMargin", Vector2.class)

Sets the depth distance between this node and other nodes that are adjacent to this node in a layout.

To access the Depth Margin property fields in a binding, use:

  • X for the Back property field
  • Y for the Front property field

◆ DepthProperty

DynamicPropertyType<Float> DepthProperty = new DynamicPropertyType<>("Node.Depth", Float.class)

The size of the node in depth direction when used in a layout.

Overrides the default bounds of the item.

◆ EffectivelyEnabledProperty

DynamicPropertyType<Boolean> EffectivelyEnabledProperty
Initial value:
=
new DynamicPropertyType<>("Node.EffectivelyEnabled", Boolean.class)

Indicates whether this node and its ancestor nodes are enabled.

Use this property in state managers and bindings to observe whether a node is effectively enabled. To enable or disable a node, use the Enabled property. When a node is effectively disabled:

  • When that node is focused, it receives key input until the focus moves to another node.
  • When that node is not focused, it is not part of the focus chain and does not receive key input.

◆ EnabledProperty

DynamicPropertyType<Boolean> EnabledProperty
Initial value:
=
new DynamicPropertyType<>("Node.Enabled", Boolean.class)

Whether this node is enabled.

When you disable this property in a node, that node and its descendant nodes in the same overlay focus scope are effectively disabled. Effectively disabling a node removes that node from the focus chain and cancels all the active input manipulators.Use the Effectively Enabled property to observe whether a node is effectively enabled.

◆ FocusableProperty

DynamicPropertyType<Boolean> FocusableProperty
Initial value:
=
new DynamicPropertyType<>("Node.Focusable", Boolean.class)

Indicates whether the node can receive focus.

◆ FocusedProperty

DynamicPropertyType<Boolean> FocusedProperty
Initial value:
=
new DynamicPropertyType<>("Node.Focused", Boolean.class)

Indicates whether the node has the key focus.

◆ FocusStateProperty

DynamicPropertyType<FocusState> FocusStateProperty
Initial value:
=
new DynamicPropertyType<>("Node.FocusState", FocusState.class)

Reports the focus state of a node:

  • No focus (0) indicates that the node is not focused. For a focus scope node indicates that none of the nodes in the scope have focus.
  • Logical focus (1) indicates that the node is the logical focus node of an overlay-type focus scope. For a focus scope node indicates that one of the nodes in that scope is the logical focus node.
  • Key focus (2) indicates that the node is the key focus node of the application and receives key input. For a focus scope node indicates that one of the nodes in that scope is the key focus node.

Use this property in state managers and bindings to implement focus states in the UI nodes.

To observe whether a node is the key focus node, you can use the boolean Focus > Focused property.

◆ FontFamilyProperty

DynamicPropertyType<Resource> FontFamilyProperty
Initial value:
=
new DynamicPropertyType<>("Node.FontFamily", Resource.class)

The font family used to render the text.

◆ HeightProperty

DynamicPropertyType<Float> HeightProperty
Initial value:
=
new DynamicPropertyType<>("Node.Height", Float.class)

The height of the node when used in a layout.

Overrides the default bounds of the item.

◆ HitTestableContainerProperty

DynamicPropertyType<Boolean> HitTestableContainerProperty
Initial value:
=
new DynamicPropertyType<>("Node.HitTestableContainer", Boolean.class)

When enabled, Kanzi uses the layout bounds as geometry for hit testing.

◆ HitTestableProperty

DynamicPropertyType<Boolean> HitTestableProperty
Initial value:
=
new DynamicPropertyType<>("Node.HitTestable", Boolean.class)

When enabled, the node can be hit tested.

Enabling Hit Testable for a 2D node enables hit testing only for that node. Enabling Hit Testable for a 3D node enables hit testing also for the child nodes. Kanzi hit tests 3D nodes using the default Camera node or the Hit Test Camera node of the active Scene node.

◆ HorizontalAlignmentProperty

DynamicPropertyType<NodeEnums.HorizontalAlignment> HorizontalAlignmentProperty
Initial value:
=
new DynamicPropertyType<>("Node.HorizontalAlignment", NodeEnums.HorizontalAlignment.class)

The alignment in horizontal direction the node should use when it resides under a layout.

◆ HorizontalMarginProperty

DynamicPropertyType<Vector2> HorizontalMarginProperty
Initial value:
=
new DynamicPropertyType<>("Node.HorizontalMargin", Vector2.class)

Sets the horizontal space between this node and other nodes that are adjacent to this node in a layout.

To access the Horizontal Margin property fields in a binding, use:

  • X for the Left property field
  • Y for the Right property field

◆ HoverProperty

DynamicPropertyType<Boolean> HoverProperty
Initial value:
=
new DynamicPropertyType<>("Node.Hover", Boolean.class)

Indicates whether a node is the foremost hit testable node under the cursor.

◆ LocaleProperty

DynamicPropertyType<String> LocaleProperty
Initial value:
=
new DynamicPropertyType<>("Node.Locale", String.class)

The locale of the node.

◆ OpacityProperty

DynamicPropertyType<Float> OpacityProperty
Initial value:
=
new DynamicPropertyType<>("Node.Opacity", Float.class)

Opacity of the node.

◆ Projection2DTo3DScaleProperty

DynamicPropertyType<Float> Projection2DTo3DScaleProperty
Initial value:
=
new DynamicPropertyType<>("Node.Projection2DTo3DScale", Float.class)

Sets the scale factor to project pixels to 3D size.

When scale is 1, then the size of one pixel is one 3D space unit.

◆ StateManagerProperty

DynamicPropertyType<Resource> StateManagerProperty
Initial value:
=
new DynamicPropertyType<>("Node.StateManager", Resource.class)

Sets the State Manager to the node.

◆ StyleProperty

DynamicPropertyType<Resource> StyleProperty
Initial value:
=
new DynamicPropertyType<>("Node.Style", Resource.class)

Sets a style to the node.

◆ VerticalAlignmentProperty

Initial value:
=
new DynamicPropertyType<>("Node.VerticalAlignment", NodeEnums.VerticalAlignment.class)

The alignment in vertical direction the node should use when it resides under a layout.

◆ VerticalMarginProperty

DynamicPropertyType<Vector2> VerticalMarginProperty
Initial value:
=
new DynamicPropertyType<>("Node.VerticalMargin", Vector2.class)

Sets the vertical space between this node and other nodes that are adjacent to this node in a layout.

To access the Vertical Margin property fields in a binding, use:

  • X for the Bottom property field
  • Y for the Top property field

◆ VisibleAmountInParentProperty

DynamicPropertyType<Float> VisibleAmountInParentProperty
Initial value:
=
new DynamicPropertyType<>("Node.VisibleAmountInParent", Float.class)

Sets the amount the node is inside its parent.

Use the value of this property in shaders to implement fades. Calculated by the parent node.

◆ VisibleProperty

DynamicPropertyType<Boolean> VisibleProperty
Initial value:
=
new DynamicPropertyType<>("Node.Visible", Boolean.class)

When disabled, Kanzi does not render the node.

◆ WidthProperty

DynamicPropertyType<Float> WidthProperty = new DynamicPropertyType<>("Node.Width", Float.class)

The width of the node when used in a layout.

Overrides the default bounds of the item.